package com.benshou.bsoa.sao;

import com.benshou.bsoa.dto.feikong.req.PublicRequestParams;
import com.benshou.bsoa.dto.feikong.res.PaymentResponse;
import jakarta.validation.Valid;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * Feign client for interacting with the 付款单同步接口-预付.
 */
@FeignClient(name = "paymentClient", url = "${benshou.feikong.requesturl}")
public interface PaymentSao {

    /**
     * 查询付款单信息
     *
     * @param request 请求参数对象，包含公共参数和具体业务数据
     * @return 响应对象，包含付款单信息
     */
    @PostMapping(value = "/fcopen/fcoutapi", consumes = "application/json", produces = "application/json")
    PaymentResponse queryPaymentList(@RequestBody @Valid PublicRequestParams request);
}